Search Fields
Shortcut Doctor v 3.1+ allows you to specify which fields in a .lnk shortcut to operate on. The default is to operate on all fields but you can control this using a special script switch for scripted operations or by making a manual registry setting.
The script switch is the Search Fields= switch. The value specified is the sum of the field values you are interested in using this table:
Field |
Value |
Start In Dir |
1 |
Some Examples:
- Search (or replace) in Icon Location only: Search Fields=2
- Search (or replace) in Command Line only: Search Fields=2
- Search (or replace) in Target and Command Line only: Search Fields=12
- Search (or replace) in Icon, Target, and Command Line: Search Fields=14
Making Manual Registry Changes
We intend for this functionality to be used primarily in scripts. But if you have a reason to have the GUI operate in the same way you can make a manual registry change.
Exit all instances of Shortcut Doctor before making the change.
Do not experiment if you are not familiar with editing the Windows Registry! Write support@funduc.com in advance if you need extra help. Mistakes with manual registry edits can make your computer inoperative and may possibly require that you reinstall your operating system and software.
The value in question is a DWord value named Search Fields under
HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags
Don't forget, DWord values are in hex. The table above is decimal so make the correct adjustment. For your convenience, here are some regedit snippets:
# Search (or replace) in Start Dir only:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:00000001
# Search (or replace) in Icon Only:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:00000002
# Search (or replace) in Target only:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:00000004
# Search (or replace) in Command Line only:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:00000008
# Start Dir & Icon:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:00000003
# Start Dir, Icon, Target:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:00000007
# Icon, Target:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:00000006
# Icon, Target, Command Line:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:0000000e
# Target, Command Line:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:0000000c
# All Fields:
[HKEY_CURRENT_USER\Software\Funduc Software Inc.\Shortcut Doctor\Flags]
"Search fields"=dword:0000000f